export default function(){
    function cutDown(){

    }
    $.extend(cutDown.prototype,{
        init : function(year,month,day){
            var year_1 = year,month_1 = month, day_1 = day;
            setInterval(function(){
                var hour = 0,minute = 0 , second = 0;
                var targetDate = new Date();
                targetDate.setFullYear(year_1); 
                targetDate.setMonth   (month_1 - 1);      
                targetDate.setDate    (day_1);
                if( arguments.length > 3){
                    hour   = arguments[3];
                    minute = arguments[4];
                    second = arguments[5];
                }
                targetDate.setHours  (hour);
                targetDate.setMinutes(minute);
                var targetTime = targetDate.setSeconds(second);
                var reduce = targetTime - Date.now();
                var second = parseInt(reduce / 1000 % 60) ;
                var minute = parseInt(reduce / 1000 / 60 % 60);
                var hour    = parseInt( reduce / 1000 / 3600);
                var days   = hour > 24 ? parseInt(hour / 24) : 0;  
                hour   = hour > 24 ? hour % 24 : hour; 
                $(".brand-days em").html(days);
                $(".brand-hours em").html(hour);
                $(".brand-minutes em").html(minute);
                $(".brand-seconds em").html(second);
            },1000)
        },
        cutdown : function(year,month,day){
            
        },
    })
    return new cutDown();
}

            